
//---------------------------------------------------------------------------------------------------
inline ColorRGBA::operator float* ()
{
	return m_afTuple;
}
//---------------------------------------------------------------------------------------------------
inline ColorRGBA::operator const float* () const
{
	return m_afTuple;
}
//---------------------------------------------------------------------------------------------------
inline float ColorRGBA::operator[] (int i) const
{
	if (i < 0)
	{
		i = 0;
	}
	if (i > 3)
	{
		i = 3;
	}
	return m_afTuple[i];
}
//---------------------------------------------------------------------------------------------------
inline float& ColorRGBA::operator[] (int i)
{
	if (i < 0)
	{
		i = 0;
	}
	if (i > 3)
	{
		i = 3;
	}
	return m_afTuple[i];
}
//---------------------------------------------------------------------------------------------------
inline float ColorRGBA::R() const
{
	return m_afTuple[0];
}
//---------------------------------------------------------------------------------------------------
inline float& ColorRGBA::R()
{
	return m_afTuple[0];
}
//---------------------------------------------------------------------------------------------------
inline float ColorRGBA::G() const
{
	return m_afTuple[1];
}
//---------------------------------------------------------------------------------------------------
inline float& ColorRGBA::G()
{
	return m_afTuple[1];
}
//---------------------------------------------------------------------------------------------------
inline float ColorRGBA::B() const
{
	return m_afTuple[2];
}
//---------------------------------------------------------------------------------------------------
inline float& ColorRGBA::B()
{
	return m_afTuple[2];
}
//---------------------------------------------------------------------------------------------------
inline float ColorRGBA::A() const
{
	return m_afTuple[3];
}
//---------------------------------------------------------------------------------------------------
inline float& ColorRGBA::A()
{
	return m_afTuple[3];
}